listmodels: Stop respecting item-type
authorBenjamin Otte <otte@redhat.com>
Sat, 4 Jul 2020 19:47:48 +0000 (21:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 5 Jul 2020 00:59:21 +0000 (02:59 +0200)
commit508073072822b83dccf3bc5aa642f488c967de52
tree1ab4dd2aaab1ae3a7d1a4485f5dc4d5e9ef26a48
parentf75a3a0e95b31c84f41acc741d6dfb2028dbe6a2
listmodels: Stop respecting item-type

Simplify all view model APIs and always return G_TYPE_OBJECT as the
item-type for every model.

It turns out nobody uses item-type anyway.

So instead of adding lots of APIs, forcing people to think about it and
trying to figure out how to handle filter or map models that modify item
types, just having an easy life is a better approach.

All the models need to be able to deal with any type of object going
through anyway.
29 files changed:
demos/constraint-editor/constraint-view.c
docs/reference/gtk/gtk4-sections.txt
gtk/gtkcustompaperunixdialog.c
gtk/gtkfilterlistmodel.c
gtk/gtkfilterlistmodel.h
gtk/gtkflattenlistmodel.c
gtk/gtkflattenlistmodel.h
gtk/gtkfontchooserwidget.c
gtk/gtkmaplistmodel.c
gtk/gtkmaplistmodel.h
gtk/gtkmultiselection.c
gtk/gtknoselection.c
gtk/gtkpagesetupunixdialog.c
gtk/gtkprintunixdialog.c
gtk/gtkshortcutcontroller.c
gtk/gtkshortcutmanager.c
gtk/gtksingleselection.c
gtk/gtkslicelistmodel.c
gtk/gtkslicelistmodel.h
gtk/gtksortlistmodel.c
gtk/gtksortlistmodel.h
gtk/gtktreelistmodel.c
gtk/inspector/controllers.c
gtk/inspector/object-tree.c
testsuite/gtk/expression.c
testsuite/gtk/flattenlistmodel.c
testsuite/gtk/maplistmodel.c
testsuite/gtk/slicelistmodel.c
testsuite/gtk/sortlistmodel.c